<nav class="nav navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button class="navbar-toggle" data-toggle="collapse" data-target="#menu">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="/" class="navbar-brand w_logo" style="margin-right: 30px;"></a>
        </div>
        <div id="menu" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="/">首页</a></li>
                <li><a href="/channel">技术</a></li>
                <li><a href="http://coding.594cto.com">代码生成器</a></li>
            </ul>
            <ul class="nav navbar-nav" style="float: right;">
                <#if Session["front_user_session"]?exists>
                    <li><a href="/web/userInfo">${Session.front_user_session.nickName!}</a></li>
                    <li><a href="/web/logout">注销</a></li>
                <#else>
                    <li><a href="/login">登录</a></li>
                </#if>
            </ul>
        </div>
    </div>
</nav>